home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / bcfamily / source / setmaxfh.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-12  |  543 b   |  24 lines

  1. //
  2. //      *******************************************************************
  3. //        JdeBP C++ Library Routines          General Public Licence v1.00
  4. //            Copyright (c) 1991,1992     Jonathan de Boyne Pollard
  5. //      *******************************************************************
  6. //
  7. // Part of FamAPI.LIB
  8. //
  9.  
  10. #include "famapi.h"
  11. #include "dosdos.h"
  12.  
  13. //
  14. //    Set maximum file handles
  15. //
  16. USHORT _APICALL
  17. DosSetMaxFH ( unsigned short NumHandles )
  18. {
  19.     _BX = NumHandles ;
  20.     _AH = 0x67 ;
  21.     Dos3Call() ;
  22.     return (_FLAGS & 0x0001) ? _AX : 0 ;
  23. }
  24.